import request from '@/utils/request'

//根据deptId查询表单列表
export function queryForm(data) {
  return request({
    url: '/form/querywithdepartmentid',//后端服务器请求地址
    method: 'post',
    data
  })
}

//查询下属用户列表
export function getUserList(data) {
  return request({
    url: '/form/user/queryWithDeptId',//后端服务器请求地址
    method: 'post',
    data
  })
}

//多条件查询flow列表
export function listFlow(data) {
  return request({
    url: '/flowInfo/list ',//后端服务器请求地址
    method: 'post',
    data
  })
}

//发布流程
export function publishFlow(data) {
  return request({
    url: '/flowInfo/insertFlowInfoAndFlowNodes',//后端服务器请求地址
    method: 'post',
    data
  })
}

